// healthMonitoring/pages/home/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    daily_data_dev:[{
      imgurl:'http://lk-webfont.oss-cn-beijing.aliyuncs.com/redstart/healthMonitoring/1.png',
      name:'运动监测',
      url:'/sportsAdministration/pages/hometab/index'
    },
    {
      imgurl:'http://lk-webfont.oss-cn-beijing.aliyuncs.com/redstart/healthMonitoring/2.png',
      name:'睡眠监测',
      url:'/sleepManagement/pages/home/index'
      // url:''
    },
    {
      imgurl:'http://lk-webfont.oss-cn-beijing.aliyuncs.com/redstart/healthMonitoring/3.png',
      name:'体脂监测',
      url:'/weightManagement/pages/home/index'
    },
    {
      imgurl:'http://lk-webfont.oss-cn-beijing.aliyuncs.com/redstart/healthMonitoring/4.png',
      name:'呼吸监测',
      url:'/breath/pages/home/index'
    },
    {
      imgurl:'http://lk-webfont.oss-cn-beijing.aliyuncs.com/redstart/healthMonitoring/5.png',
      name:'心电监测',
      url:'/electrocardiogram/pages/home/index'
      // url:''
    },
    {
      imgurl:'http://lk-webfont.oss-cn-beijing.aliyuncs.com/redstart/healthMonitoring/6.png',
      name:'血压监测',
      url:'/blood/pages/home/index'
    },
    // {
    //   imgurl:'https://hxhealth.oss-cn-beijing.aliyuncs.com/redstart/healthMonitoring/7.png',
    //   name:'血糖监测',
    //   url:''
    // },
    {
      imgurl:'http://lk-webfont.oss-cn-beijing.aliyuncs.com/redstart/healthMonitoring/7.png',
      name:'三合一',
      url:'/three-in-one/pages/home/index'
    },
    {
      imgurl:'http://lk-webfont.oss-cn-beijing.aliyuncs.com/redstart/healthMonitoring/8.png',
      name:'身高体重',
      url:'/heightfat/pages/home/index'
    },
    {
      imgurl:'http://lk-webfont.oss-cn-beijing.aliyuncs.com/redstart/healthMonitoring/9.png',
      name:'血氧监测',
      url:'/bloodoxygen/pages/home/index'
    },
    {
      imgurl:'http://lk-webfont.oss-cn-beijing.aliyuncs.com/redstart/healthMonitoring/10.png',
      name:'面舌报告',
      url:'/facetongue/pages/home/index',
      // url:'/facetongue/pages/web/index'
    },
    // {
    //   imgurl:'https://hxhealth.oss-cn-beijing.aliyuncs.com/redstart/healthMonitoring/12.png',
    //   name:'更多功能敬请期待',
    //   url:''
    // } 
  ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },
  go(e) {
    console.log(e);
    const { titlename, urlpage } = e.currentTarget.dataset;
    console.log(urlpage, 'page111')
    if(urlpage) {
      wx.navigateTo({
        url: `${urlpage}?titlename=${titlename}`
    })
    } else {
      wx.showToast({
        title: '正在开发，敬请期待',
        icon: 'none',
        duration: 3000
      })
    }
    
},
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})